qt: create another indirection X11 window
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 5 Feb 2021 17:25:48 +0000 (19:25 +0200)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 9 Mar 2021 16:42:00 +0000 (16:42 +0000)
commit97ddea4a9b571aabdb960b2e32c8e0661a7c4a79
treec61b6de3feb443edd3b92c9a49b4dd2cf136bfa8
parent0e17a412a73ccb89e7f1c94223c8811c5faa817e
qt: create another indirection X11 window

The main window may be destroyed before the video window. This notably
occurs if the user requests to close the main UI via window decorations.
While Qt allows those requests to be rejected, doing so would
reintroduce obnoxious bug #4606.

The Qt-X11 display connection will be closed as well as it belongs to
the QApplication instance.

This creates a separate window belonging to a separate display
connection, and which is not tied to the QApplication and QMainWindow
instances. Unfortunately, this adds yet another connection to the X11
display server in the VLC process in addition to QApplication's and the
video display's. And that connection won't process events.

Refs #21875.

Gbp-Pq: Name 0005-qt-create-another-indirection-X11-window.patch
modules/gui/qt/components/interface_widgets.cpp
modules/gui/qt/qt.cpp